import logging

from ...constants.common_sequence import EnvCons, LANGUAGE_SEQUENCE
from ...page.client.cash_pos import CashPos
from ...page.security_page.login_page import LoginPage
import inspect


logger = logging.getLogger(__name__)


class TestDeleteCase(object):

    def test_login(self):
        """
        测试登录
        """
        # 登录
        LoginPage(CashPos()).switch_env(EnvCons.pre.value).switch_language(LANGUAGE_SEQUENCE[0]).business_login(
            applet_id='10021', applet_pwd='123456').clerk_login('6666', '6666')

    def test_get_function_name(self):
        print(f"当前方法名称: {inspect.currentframe().f_code.co_name}")
